﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.DTO;

namespace ZSZ.Iservice
{
   public interface IAdminUserService:IServiceSupport
    {
        long AddAdminUser(string name,string phoneNum,string passWord,string email,long? cityId);
        void UpdateAdminUser(long adminuserId,string name,string pass,string email,long? cityId);
        AdminUserDTO[] GetALLByCityId(long? cityId);
        AdminUserDTO GetById(long id);
        AdminUserDTO[] GetAll();
        bool CheckLogin(string user,string pass);
        void MarkDeleted(long id);
        AdminUserDTO GetByPhone(string phone);
        bool HasPermission(long id,string permissionName);
        void RecordLoginError(long id);//记录错误登录一次
        void ResetLoginError(long id);//重置登录错误信息
    }
}
